<template>
  <div class="fullpage">
    <div style="position:sticky;top:0;z-index:1000;">
      <van-nav-bar  
      @click-left="$router.back()"
      left-text="返回" 
      :title="title"></van-nav-bar>
    </div>
    <slot></slot>
  </div>
</template>
<script>
export default {
  props:{
    title:{
      required:true,
      type:String
    }
  },
  set(){

  }
}
</script>
<style lang="scss" scoped>
.fullpage {
  position: fixed;
  z-index:10;
  top: 0;
  bottom: 0;
  width: 100%;
  // background-color: lightblue;
  overflow: scroll;
}
</style>
